package com.ssy.lingxi.settle.accounts.repository;

import com.ssy.lingxi.settle.accounts.entity.PlatformSettlementDetailDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 平台结算明细
 * @author 伍将
 * @date 2020/10/29
 * @version 2.0.0
 */
public interface PlatformSettlementDetailRepository extends JpaRepository<PlatformSettlementDetailDO, Long>, JpaSpecificationExecutor<PlatformSettlementDetailDO> {

    /**
     * 查询是否存在大于佣金的数据
     * @author 伍将
     * @date 2021/1/21
     * @param brokerage: 佣金
     * @return true/false
     **/
    Boolean existsByBrokerageGreaterThan(Double brokerage);
}
